package com.nandasoft.njuerp.common.pagination;

import java.util.ArrayList;
import java.util.List;


public class Page<T>
{

	private int start = 1;
	private int limit = 10;
	private String sorter;
	private String like;
	private String order = "DESC";
	private int total;
	private List<ConditionQuery> conditionQueries = new ArrayList<ConditionQuery>();
	private List<T> rows = new ArrayList<T>();
	//查询条件
	private String query;
	
	@Deprecated
	public String getLike()
	{
		return like;
	}

	@Deprecated
	public void setLike(String like)
	{
		this.like = like;
	}

	public List<T> getRows()
	{
		return rows;
	}

	public void setRows(List<T> rows)
	{
		this.rows = rows;
	}

	public List<ConditionQuery> getConditionQueries()
	{
		return conditionQueries;
	}

	public void setConditionQueries(List<ConditionQuery> conditionQueries)
	{
		this.conditionQueries = conditionQueries;
	}

	public Page(int start, int limit)
	{
		this.start = start;
		this.limit = limit;
	}

	public Page(int start, int limit, String sorter, String order)
	{
		this.start = start;
		this.limit = limit;
		this.sorter = sorter;

		this.order = order;
	}

	public int getStart()
	{
		return start;
	}

	public void setStart(int start)
	{
		this.start = start;
	}

	public int getLimit()
	{
		return limit;
	}

	public void setLimit(int limit)
	{
		this.limit = limit;
	}

	public String getSorter()
	{
		return sorter;
	}

	public void setSorter(String sorter)
	{
		this.sorter = sorter;
	}

	public String getOrder()
	{
		return order;
	}

	public void setOrder(String order)
	{
		this.order = order;
	}

	public int getTotal()
	{
		return total;
	}

	public void setTotal(int total)
	{
		this.total = total;
	}

	public Page()
	{
		super();
		// TODO Auto-generated constructor stub
	}

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}
}
